b0aaa92751c50841e1525cbe05302195f9bd0bed,opennms-webapp/src/main/java/org/opennms/web/ServletInitializer.java,ServletInitializer,init,#ServletContext#,108
Before Change
try {
// read the OpenNMS properties
Properties properties = new Properties(System.getProperties());
properties.load(context.getResourceAsStream("/WEB-INF/configuration.properties"));
Enumeration initParamNames = context.getInitParameterNames();
while (initParamNames.hasMoreElements()) {
After Change
if (factory == null) {
try {
String propertiesResource = "/WEB-INF/configuration.properties";
// read the OpenNMS properties
Properties properties = new Properties(System.getProperties());
InputStream configurationStream = context.getResourceAsStream(propertiesResource);
if (configurationStream == null) {
throw new ServletException("Could not load properties from resource \'" + propertiesResource + "\'");
}
properties.load(configurationStream);
configurationStream.close();